package com.kylin.admin.modular.code;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author liugh
 * @since on 2018/5/24.
 */
public class KylinToken implements AuthenticationToken {

    private String userName;
    private String passWord;

    public KylinToken(String userName,String passWord) {
        this.userName = userName;
        this.passWord = passWord;
    }

    @Override
    public Object getPrincipal() {
        return userName+":"+passWord;
    }

    @Override
    public Object getCredentials() {
        return userName+":"+passWord;
    }
}
